package com.longer.playhelper.presenter;


import android.os.Handler;


import com.longer.playhelper.modle.bean.Love;
import com.longer.playhelper.modle.biz.LoveBiz;
import com.longer.playhelper.view.iview.IFragmentMainView;
import com.longer.playhelper.view.iview.IFragment_PlayView;

import java.util.List;

/**
 * Created by longer on 2017/4/13.
 */

public class Fragement_PlayPresenter {

    private IFragment_PlayView fragmentMainView;
    private Love.ILoveBiz loveBiz;
    private Handler mHander = new Handler();

    public Fragement_PlayPresenter(IFragment_PlayView fragmentMainView) {
        this.fragmentMainView = fragmentMainView;
        loveBiz = new LoveBiz();
    }

    public void setMenuLove() {
        loveBiz.getLove(new Love.OnGetLove() {
            @Override
            public void Success(List<Love> list) {
                fragmentMainView.setmenu_love(list);
            }

            @Override
            public void Failed() {
            }
        });
    }




}
